﻿using System;
using System.Collections.Generic;
using System.Linq;

using SharedGenomics.Core;

namespace SharedGenomics.Workbench.PresentationModel
{
    public class FileSetUploadPresentationModel : PresentationTransferObject
    {
        public string FileSetName
        {
            get { return this.GetPropertyValue<string>("FileSetName"); }
            set { this.SetPropertyValue("FileSetName", value); }
        }

        protected override void Validate(SharedGenomics.Core.IValidationErrorCollection validationErrors)
        {
            if (this.FileSetName.IsEmptyOrWhitespace())
            {
                validationErrors.Add("File Set Name required", this, "FileSetName");
            }
        }
    }
}
